<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<jsp:include page="/WEB-INF/views/commons/lib.jsp"></jsp:include>
<link rel="stylesheet" href="/static/css/info.css" />

<div class="col-xs-12">
	<form id="validForm" class="form-horizontal" role="form">
		<input type="hidden" name="id" value="${btn.id}"/>
		<div class="space-4"></div>
		<div class="form-group">
			<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 按钮名称 </label>
			<div class="col-sm-9">
				<input type="text" name="name" value="${btn.name}" placeholder="按钮名称" class="col-xs-10 col-sm-5 required">
			</div>
		</div>
		<div class="space-4"></div>
		<div class="form-group">
			<label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 权限字符串 </label>
			<div class="col-sm-9">
				<input name="permission" type="text" value="${btn.permission}" placeholder="权限字符串" class="col-xs-10 col-sm-5">
				<span class="help-inline col-xs-12 col-sm-7">
					<span class="middle">权限字符串</span>
				</span>
			</div>
		</div>
		<div class="space-4"></div>
		<div class="form-group">
			<label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 所属菜单 </label>
			<div class="col-sm-9">
				<div class="input-group col-xs-10 col-sm-5 no-padding">
					<input name="menu.id" id="menuId" value="${btn.menu.id}" class="required" type="hidden">
					<input id="menuName" name="menuName" value="${btn.menu.name}" readonly="readonly" class="form-control required" type="text" placeholder="所属菜单">
					<span class="input-group-btn" id="showMenuTree">
						<a href="javascript:" class="btn btn-primary btn-sm dropdown-toggle" style="padding: 11px;"> <span class="caret"></span></a>
				 	</span>
				</div>
			</div>
		</div>
		<div class="clearfix form-group">
			<label class="col-sm-3 control-label no-padding-right" for=""> &nbsp;</label>
			<div class="col-sm-9">
				<button id="submitForm" class="btn btn-info" type="button">
					<i class="icon-ok bigger-110"></i>
					提交
				</button>
				&nbsp; &nbsp; &nbsp;
				<button class="btn" type="reset">
					<i class="icon-undo bigger-110"></i>
					重置
				</button>
			</div>
		</div>
	</form>
</div>

<div id="menuContent" class="menuContent" style="display:none; position: absolute;">
	<ul id="treeDemo" class="ztree" style="margin-top:0; width:160px;"></ul>
</div>

<script type="text/javascript" src="/static/module/system/button/edit.js"></script>